<template>
    <div>
        <van-nav-bar
            class="nav"
            :title="Tab.title"
            :right-text="Tab.righttext"
            left-arrow
            @click-right="leap(Tab.path)"
        />
    </div>
</template>
 
<script>
import Vue from "vue";
//导航栏
import { NavBar } from "vant";
Vue.use(NavBar);

//图标
import { Icon } from "vant";
Vue.use(Icon);
export default {
    props: ['Tab'],
    data() {
        return {

        }
    },
    methods: {
        leap(path) {
            this.$router.push(path)
        }
    }
}
</script>
 
<style lang = "less" scoped>
.nav {
    background: #173399;
    padding: 20px 0;
    /deep/ .van-nav-bar__content {
        font-size: 30px;

        .van-nav-bar__title {
            color: #dbdbe8;
            font-size: 30px;
            padding: 20px 0;
        }
        .van-nav-bar__left {
            i {
                color: #dbdbe8;
                font-size: 30px;
            }
        }
        .van-nav-bar__right {
            span {
                color: #dbdbe8;
                font-size: 30px;
            }
        }
    }
}
</style>